PreviewEvent
If your preview component handles events, thePreviewEvent
function is called as appropriate.
pascal ComponentResult PreviewEvent (pnotComponent p, EventRecord *e, Boolean *handledEvent);
p
- Specifies your preview component. You obtain this identifier from
the Component Manager'sOpenComponent
function. See the chapter "Component Manager" in Inside Macintosh: More Macintosh Toolbox for details.e
- Contains a pointer to the event structure for this operation.
handledEvent
- Contains a pointer to a Boolean value. If you completely handle an event such as a mouse-down event or keystroke, you should set the
handledEvent
parameter totrue
. Otherwise, set it tofalse
.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help